Optimal. Leaf size=78 \[ \frac{A \sqrt{b x^2+c x^4}}{x}-A \sqrt{b} \tanh ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{b x^2+c x^4}}\right )+\frac{B \left (b x^2+c x^4\right )^{3/2}}{3 c x^3} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.145952, antiderivative size = 78, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 26, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.154, Rules used = {2039, 2021, 2008, 206} \[ \frac{A \sqrt{b x^2+c x^4}}{x}-A \sqrt{b} \tanh ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{b x^2+c x^4}}\right )+\frac{B \left (b x^2+c x^4\right )^{3/2}}{3 c x^3} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2039
Rule 2021
Rule 2008
Rule 206
Rubi steps
\begin{align*} \int \frac{\left (A+B x^2\right ) \sqrt{b x^2+c x^4}}{x^2} \, dx &=\frac{B \left (b x^2+c x^4\right )^{3/2}}{3 c x^3}+A \int \frac{\sqrt{b x^2+c x^4}}{x^2} \, dx\\ &=\frac{A \sqrt{b x^2+c x^4}}{x}+\frac{B \left (b x^2+c x^4\right )^{3/2}}{3 c x^3}+(A b) \int \frac{1}{\sqrt{b x^2+c x^4}} \, dx\\ &=\frac{A \sqrt{b x^2+c x^4}}{x}+\frac{B \left (b x^2+c x^4\right )^{3/2}}{3 c x^3}-(A b) \operatorname{Subst}\left (\int \frac{1}{1-b x^2} \, dx,x,\frac{x}{\sqrt{b x^2+c x^4}}\right )\\ &=\frac{A \sqrt{b x^2+c x^4}}{x}+\frac{B \left (b x^2+c x^4\right )^{3/2}}{3 c x^3}-A \sqrt{b} \tanh ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{b x^2+c x^4}}\right )\\ \end{align*}
Mathematica [A] time = 0.0769255, size = 84, normalized size = 1.08 \[ \frac{x \left (\left (b+c x^2\right ) \left (3 A c+b B+B c x^2\right )-3 A \sqrt{b} c \sqrt{b+c x^2} \tanh ^{-1}\left (\frac{\sqrt{b+c x^2}}{\sqrt{b}}\right )\right )}{3 c \sqrt{x^2 \left (b+c x^2\right )}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.007, size = 85, normalized size = 1.1 \begin{align*} -{\frac{1}{3\,cx}\sqrt{c{x}^{4}+b{x}^{2}} \left ( 3\,A\ln \left ( 2\,{\frac{\sqrt{b}\sqrt{c{x}^{2}+b}+b}{x}} \right ) \sqrt{b}c-B \left ( c{x}^{2}+b \right ) ^{{\frac{3}{2}}}-3\,A\sqrt{c{x}^{2}+b}c \right ){\frac{1}{\sqrt{c{x}^{2}+b}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} A \int \frac{\sqrt{c x^{2} + b}}{x}\,{d x} + \frac{{\left (c x^{2} + b\right )}^{\frac{3}{2}} B}{3 \, c} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.25291, size = 359, normalized size = 4.6 \begin{align*} \left [\frac{3 \, A \sqrt{b} c x \log \left (-\frac{c x^{3} + 2 \, b x - 2 \, \sqrt{c x^{4} + b x^{2}} \sqrt{b}}{x^{3}}\right ) + 2 \, \sqrt{c x^{4} + b x^{2}}{\left (B c x^{2} + B b + 3 \, A c\right )}}{6 \, c x}, \frac{3 \, A \sqrt{-b} c x \arctan \left (\frac{\sqrt{c x^{4} + b x^{2}} \sqrt{-b}}{c x^{3} + b x}\right ) + \sqrt{c x^{4} + b x^{2}}{\left (B c x^{2} + B b + 3 \, A c\right )}}{3 \, c x}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sqrt{x^{2} \left (b + c x^{2}\right )} \left (A + B x^{2}\right )}{x^{2}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.15775, size = 157, normalized size = 2.01 \begin{align*} \frac{A b \arctan \left (\frac{\sqrt{c x^{2} + b}}{\sqrt{-b}}\right ) \mathrm{sgn}\left (x\right )}{\sqrt{-b}} - \frac{{\left (3 \, A b c \arctan \left (\frac{\sqrt{b}}{\sqrt{-b}}\right ) + B \sqrt{-b} b^{\frac{3}{2}} + 3 \, A \sqrt{-b} \sqrt{b} c\right )} \mathrm{sgn}\left (x\right )}{3 \, \sqrt{-b} c} + \frac{{\left (c x^{2} + b\right )}^{\frac{3}{2}} B c^{2} \mathrm{sgn}\left (x\right ) + 3 \, \sqrt{c x^{2} + b} A c^{3} \mathrm{sgn}\left (x\right )}{3 \, c^{3}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]